package net.lb.socketserver.handler.impl.auth.des;

import java.util.Random;
import javax.annotation.Resource;
import net.lb.socketserver.handler.impl.auth.des.RandomKeyGenerater;

@Resource
public class DesKeyGenerator implements RandomKeyGenerater
{
    Random random = new Random();
    
    @Override
    public byte[] generateRandomKey()
    {
        byte[] result = new byte[8];
        random.nextBytes(result);
        return result;
    }
}
